import request from '@/utils/request';
import { SignIn, SignOut } from './user';

/**
 * 用户登录
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export function signIn(params: SignIn) {
    return request({
        url: '/user/signIn',
        method: 'post',
        data: params,
    });
}

/**
 * 用户退出登录
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export function signOut(params: SignOut) {
    return request({
        url: '/user/signOut',
        method: 'post',
        data: params,
    });
}

export function qqq(params?: SignIn) {
    return request({
        url: '/api/query/KEyongkunuber',
        method: 'post',
        data: params,
    });
}